<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let a = new Map(
            [
              ["name","张三"],
              ["age",18],
              [[1,2,3],"数组"]

            ]
        )

        console.log(a)

        // a.size
        console.log(a.size)

        a.set("爱好","男")
        a.set("age","男")

        console.log(a)

        console.log(a.get("name"))
        console.log(a.has("n1ame"))


        console.log(a.delete("age"))

        a.delete("age")
        console.log(a)

        a.clear()
        console.log(a)


    </script>
</body>
</html>